index.js ➔ ???   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 2
dl 0
loc 8
rs 9.4285
nop 2
1
module.exports = ($, options) => {
2
  const rule = options && options.rules && options.rules.strong
3
  const threadhold = (rule && rule.threadhold) || 15
4
  const count = $('strong').length
5
  return count > threadhold
6
    ? `This HTML has more than ${threadhold} <strong> tag`
7
    : null
8
}
9